﻿using AdminSystem.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSystem.Domain
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class UserInfo : BaseClass
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Key]
        public int UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        [StringLength(50)]
        public string UserPass { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        [StringLength(50)]
        public string UserNickname { get; set; }
        /// <summary>
        /// 角色编号
        /// </summary>
        public int RoleId { get; set; }
    }
}
